<% if flash[:notice].present? %>
    <div class="row">
        <div class="col-md-12">
          <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <ul>
             <%= flash[:notice] %>             
            </ul>                                             
          </div>
        </div>
    </div>
<% end %>


<% if flash[:success].present? %>
    <div class="row">
        <div class="col-md-12">
          <div class="alert alert-success">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
            <ul>
             <%= flash[:success] %>             
            </ul>                                             
          </div>
        </div>
    </div>
<% end %>

<div class="form-group">
  <label class="col-md-12">原密码*</label>
  <div class="col-md-12">
       <%= password_field_tag :old_password,nil,class:"form-control",label:false,placeholder:"请输入原来的密码"%>
  </div>
</div>

<div class="form-group">
  <label class="col-md-12">新密码*</label>
  <div class="col-md-12">
       <%= password_field_tag :new_password,nil,class:"form-control",label:false,placeholder:"请输入新的密码"%>
  </div>
</div>

<div class="form-group">
  <label class="col-md-12">重复输入密码*</label>
  <div class="col-md-12">
       <%= password_field_tag :password_confirm,nil,class:"form-control",label:false,placeholder:"请重复输入新的密码"%>
  </div>
</div>

<div class="form-group m-b-0">
    <div class="col-sm-offset-3 col-sm-9">
      <button type="submit" class="btn btn-info waves-effect waves-light m-t-10">确定</button>
      <%= link_to("取消", "/restaurants/new_password" , class:"btn btn-default waves-effect waves-light m-t-10") %>
    </div>
</div>
